/**   
* @Title: UsersForeachHandler.java
* @Package gov.pbc.gx.hc.sa.uflo
* @Description: TODO(用一句话描述该文件做什么)
* @author WLF
* @date 2015-11-9 下午4:28:49
* @version V1.0
*/ 
package gov.pbc.nn.kjgl.task.handler;

import java.util.Collection;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.bstek.uflo.client.service.ProcessClient;
import com.bstek.uflo.env.Context;
import com.bstek.uflo.model.ProcessInstance;
import com.bstek.uflo.process.handler.ForeachHandler;

/** 
 * @ClassName: UsersForeachHandler
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author WLF
 * @date 2015-11-9 下午4:28:49
 * 
 */
@Component("modifyBranchUserForeachHandler")
public class modifyBranchUserForeachHandler implements ForeachHandler {

	/** (非 Javadoc) 
	 * Title: handle
	 * Description:
	 * @param arg0
	 * @param arg1
	 * @return
	 * @see com.bstek.uflo.process.handler.ForeachHandler#handle(com.bstek.uflo.model.ProcessInstance, com.bstek.uflo.env.Context)
	 */
	@Resource(name=ProcessClient.BEAN_ID)
	private ProcessClient processClient;
	@SuppressWarnings("unchecked")
	@Override
	public Collection<Object> handle(ProcessInstance processInstance, Context context) {
		// TODO Auto-generated method stub
		return (Collection<Object>) processClient.getProcessVariable("modifyBranchUserList",processInstance);
	}

}
